﻿using Minecraft.BLL;
using Minecraft.Config;
using Minecraft.Config.ipConst;
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Runtime.InteropServices;
using System.Text;
using System.Threading.Tasks;

namespace Minecraft.ServerHall
{
	class Program
	{
		static void Main(string[] args)
		{
			Console.ForegroundColor = ConsoleColor.Yellow;
			Console.WriteLine($"--------------【Minecraft服务器（{JsonConfig.Value.Name}）】---------------");
			Console.ResetColor();

			//检验
			StartBLL.StartDBServerCheck();

			//初始化
			CsvConfig.Install();
			IpConstConfig.Init();

			//if (JsonConfig.Value.IsDebug)
			//{
			//	//StaticData.Init();
			//}

			//服务器最后启动
			MinecraftServerStart.Do();
		}
	}
}
